<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="stylesheet" href="../../gameStyle.css" type="text/css" />
        <script type="text/javascript" src="http://lib.ivank.net/ivank.js"></script>
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript" src="../types.js"></script>
        <script type="text/javascript" src="../button.js"></script>
        <script type="text/javascript" src="../timer.js"></script>
        <script type="text/javascript" src="../menu.js"></script>
        <script type="text/javascript" src="../nextlevelMenu.js"></script>
        <script type="text/javascript" src="../level.js"></script>
        <script type="text/javascript" src="functions.js"></script>
        <script type="text/javascript" src="functionslevel.js"></script>
    </head>
    <body onload="Start();">

        <canvas id ="canvas" width="740" height="500"></canvas>
        <script>          
            var currentLevel = 2;
            var canvas = document.getElementById("canvas");
            var cwidth = canvas.getAttribute("width");
            var cheight = canvas.getAttribute("height");
            var size = 500;
            var len = 3;
            var solved = false;
            function Start(){
                var stage = new Stage("canvas");              
                var level = new FunctionsLevel(7,typePhysics);
                level.init();             
                stage.addChild(level,0); // pridavam level na index 0, index tam inak nemusim davat
                intervalID = window.setInterval(level.run, 1000 / 60);  
            }
            
            
        </script>
        
    </body>
</html>
